package com.yifushidai.mapper;

import com.yifushidai.entity.PowerEntity;
import com.yifushidai.utils.Query;

import java.util.List;

public interface PowerEntityMapper {
    /*
    int deleteByPrimaryKey(Long id);
    int insert(PowerEntity record);
    PowerEntity selectByPrimaryKey(Long id);
    int updateByPrimaryKeySelective(PowerEntity record);
    int updateByPrimaryKey(PowerEntity record);
    */
    int deleteByMac(String mac);


    int insertSelective(PowerEntity record);
    List<PowerEntity> queryAllByMac(Query query);
    int queryAllByMacTotal(Query query);
    List<PowerEntity> queryTodayByMac(Query query);
    int queryTodayByMacTotal(Query query);
    List<PowerEntity> queryLatestByMac(String mac);

    Double querySaveTotalByMac(String mac);
    Double querySaveTodayByMac(String mac);

}